<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page import="java.util.ArrayList,edu.student.models.*, com.opensymphony.xwork2.ActionContext,java.util.Map,java.util.List,student.action.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table align="center" id="text">
<tr>
<td><s:select name="semester" style="height: 30 px; width: 150px" headerKey="1" label="Semester" headerValue="select semester" list="semesterlist" id="mysemester" onchange="populateList(this);"></s:select>
<td><s:select name="subject" style="height: 30 px; width: 150px" headerKey="1" label="Subject" headerValue="select subject" list="subjectlist" key="subject" id="mysubject" ></s:select>
</table>
<table border="1" align="center">
<tr> 
    

<th><h2>Subject Name</h2></th>
<th><h2>Subject Code</h2></th>
<th><h2>Grade</h2></th>
<th><h2>Result</h2></th>
    
</tr>
<s:iterator value="gradelist">
<tr>
<td><h3><s:property value="subjectName"/> </h3></td>
<td><h3><s:property value="subjectCode"/> </h3></td>
<td><h3><s:property value="grade"/> </h3></td>
<td><h3><s:property value="result"/> </h3></td>
</tr>
</s:iterator>
</table>
<br/><br/>
<center>
<s:url id="forward" action="Grades"/>
<s:a href="%{forward}">Back To Grades</s:a>
</center>

</body>
</html>